<template>
  <div class="code">
    <div v-text="msg">激活中</div>
  </div>
</template>

<script>
import {config,lzd_ajax,lzd_cont} from '../resources/js/commit.js'
export default {
  components: {

  },
    data () {
    return {
      yj: false,
      msg:"激活中"
      // submit001: 'click me',
      // disable001: false
    }
  },
    methods:{
    onload(){
      var self=this;
      lzd_ajax.ajaxpost(this,config.logo,{
            usertype:4,
            emailcode:self.$route.query.code,
            email:self.$route.query.email
          },function(data){
              if ( data.ResultCode == "0000" ) {
                self.msg="激活成功！立即跳转"
                setTimeout(function(){
                  self.$router.push('/logo');
                },1000)
              }else{
                 self.msg="激活失败！请联系管理员"
              }
            // lzd_localStorage.localStorage(2,data);
            // self.loadin=false;
          },function(){
            alert("请检查网络")
      })
    }
  },
  mounted () {
    this.$nextTick(function() {
      this.onload();
      setTimeout(()=>{this.$store.state.isload=false},100)
      // alert("f")
      // alert(this.$route.query.email)
    // window.
    })
  }
}
</script>
<style lang="scss">

</style>
